import request from "@/api/request";

//添加购物车
export const addCart = data => request({ url: '/cart/addCart', method: 'post', data })

//获取购物车列表
export const cartList = data => request({ url: '/cart/cartList', method: 'get', data })

//下单
export const submitAction = data => request({ url: '/order/submitAction', method: 'post', data })

//订单页面数据获取
export const detailAction = data => request({ url: '/order/detailAction', method: 'get', data })

//删除商品/cart/deleteAction
export const deleteAction = data => request({ url: '/cart/deleteAction', method: 'get', data })